package com.kfm.service.impl;

import com.kfm.anno.M;
import com.kfm.service.AccountService;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {


    @Override
    @M("保存信息")
    public int save() {
        System.out.println("accountServiceImpl --> save()");
        try{
            throw new RuntimeException("ex");
        }catch (Exception ex){
            System.out.println("处理异常");
        }
        return 0;
    }

    @Override
    @M("删除信息")
    public void delete(String id) {
        System.out.println("accountServiceImpl --> delete(String)");
    }
}
